﻿using IdentityServer4.EntityFramework.Entities;
namespace Ids4.Api.Services
{
    public interface IApiResourceService
    {
        Pagelist<ApiResourceListVo> GetApiResources(PageInput pageInput);
        Task<ApiResourceVo> GetApiResource(int Id);
        Task<bool> CreateApiResource(CreateApiResouceDto model);
        Task<bool> Update(UpdateApiResourceDto model);
        Task<bool> Remove(int Id);

        Pagelist<ApiResourceScopeListVo> GetScopes(PageInput pageInput, int apiresourceId);
        Task<bool> AddScope(CreateApiResourceScopeDto apiScope);
        Task<bool> RemoveScope(int apiresourceId);

        Pagelist<ApiResourceSecret> GetSecrets(PageInput pageInput, int apiresourceId);
        Task<bool> AddSecret(CreateApiResourceSecretDto apiScope);
        Task<bool> RemoveSecret(int secretId);

        Pagelist<ApiResourceProperty> GetProperties(PageInput pageInput, int apiresourceId);
        Task<bool> AddProperties(CreateApiResourcePropertyDto apiScope);
        Task<bool> RemovePropertiest(int apiresourceId);



    }
}
